500
How can I change the foreground color of the HTML text or caption of the bar in the chart

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	h = _ObjectCallMethod( items , "AddItem", "Task 1");
	_ObjectCallMethod( items , "AddBar", h,"Task","1/2/2001","1/6/2001","K1");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj,h")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod(gantt, "TemplatePut", h)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemBar(h,`K1`,3) = `<bgcolor=FF0000> to do </bgcolor>`");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemBar(h,`K1`,8) = 16777215");

499
How can I assign a tooltip to a bar in the chart

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	h = _ObjectCallMethod( items , "AddItem", "Task 1");
	_ObjectCallMethod( items , "AddBar", h,"Task","1/2/2001","1/4/2001","K1");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj,h")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod(gantt, "TemplatePut", h)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemBar(h,`K1`,6) = `This is a bit of text that's displayed when the cursor hovers the bar`");

498
How can I vertically align the HTML text or caption of the bar in the chart

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	h = _ObjectCallMethod( items , "AddItem", "Task 1");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj,h")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod(gantt, "TemplatePut", h)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemHeight(h) = 32");
	_ObjectCallMethod( items , "AddBar", h,"Task","1/2/2001","1/6/2001","K1");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemBar(h,`K1`,3) = `<bgcolor=FF0000> to do </bgcolor>`");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemBar(h,`K1`,5) = 0");

497
How can I align the HTML text or caption of the bar in the chart

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	h = _ObjectCallMethod( items , "AddItem", "Task 1");
	_ObjectCallMethod( items , "AddBar", h,"Task","1/2/2001","1/6/2001","K1");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj,h")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod(gantt, "TemplatePut", h)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemBar(h,`K1`,3) = `<bgcolor=FF0000> to do </bgcolor>`");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemBar(h,`K1`,4) = 0");

496
How can I assign a text or some HTML caption to a bar in the chart

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	h = _ObjectCallMethod( items , "AddItem", "Task 1");
	_ObjectCallMethod( items , "AddBar", h,"Task","1/2/2001","1/6/2001","K1");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj,h")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod(gantt, "TemplatePut", h)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemBar(h,`K1`,3) = ` <bgcolor=FF0000>to do</bgcolor> `");

495
How can I change the ending date of the bar in the chart
OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	h = _ObjectCallMethod( items , "AddItem", "Task 1");
	_ObjectCallMethod( items , "AddBar", h,"Task","1/2/2001","1/4/2001","K1");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj,h")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod(gantt, "TemplatePut", h)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemBar(h,`K1`,2) = #1/6/2001#");

494
How can I change the starting date of the bar in the chart
OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	h = _ObjectCallMethod( items , "AddItem", "Task 1");
	_ObjectCallMethod( items , "AddBar", h,"Task","1/2/2001","1/4/2001","K1");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj,h")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod(gantt, "TemplatePut", h)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemBar(h,`K1`,1) = #1/1/2001#");

493
How can I change the style or the name of the bar in the chart

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	h = _ObjectCallMethod( items , "AddItem", "Task 1");
	_ObjectCallMethod( items , "AddBar", h,"Task","1/2/2001","1/4/2001","K1");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj,h")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod(gantt, "TemplatePut", h)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemBar(h,`K1`,0) = `Progress`");

492
How can I access properties and methods of the bar in the chart
OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	h = _ObjectCallMethod( items , "AddItem", "Task 1");
	_ObjectCallMethod( items , "AddBar", h,"Task","1/2/2001","1/4/2001","K1");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj,h")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod(gantt, "TemplatePut", h)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.ItemBar(h,`K1`,0) = `Progress`");

491
How can I remove all bars in the item
OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	h = _ObjectCallMethod( items , "AddItem", "Task 1");
	_ObjectCallMethod( items , "AddBar", h,"Task","1/2/2001","1/4/2001","K1");
	_ObjectCallMethod( items , "ClearBars", h);

490
How can I remove a bar from the chart
OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	h = _ObjectCallMethod( items , "AddItem", "Task 1");
	_ObjectCallMethod( items , "AddBar", h,"Task","1/2/2001","1/4/2001","K1");
	_ObjectCallMethod( items , "RemoveBar", h,"K1");

489
How can I add a bar and some text inside, in the chart area

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Task 1"),"Task","1/2/2001","1/6/2001",""," to do ");

488
How can I add a bar and some text inside, in the chart area

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Task 1"),"Task","1/2/2001","1/6/2001","","<bgcolor=FF0000> to do </bgcolor>");

487
How can I add an anchor or a hyperline in the chart area

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Task 1"),"","1/2/2001","1/14/2001","","just a <a1>link</a>");

486
How can I add some text or captions in the chart area

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Task 1"),"","1/2/2001","1/14/2001","","just a <b>caption</b>");

485
How can I add a bar in the chart area

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Task");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Task 1"),"Task","1/2/2001","1/4/2001");

484
Is there any option to put a picture or an icon to the thumb part of the scroll bar

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( gantt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
	"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
	"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
	"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectCallMethod(gantt, "ExecuteTemplate", "ScrollPartCaption(2,256) = `<img>1</img>`");
_ObjectCallMethod(gantt, "ExecuteTemplate", "ScrollThumbSize(2) = 24");

483
How can I scroll fast the chart, or page by page

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( gantt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
	"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
	"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
	"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectSetProperty( gantt , "ScrollHeight", 20);
_ObjectSetProperty( gantt , "ScrollButtonWidth", 20);
_ObjectSetProperty( gantt , "AllowChartScrollPage", -1);
_ObjectCallMethod(gantt, "ExecuteTemplate", "ScrollPartCaption(2,2048) = `<img>1</img>`");
_ObjectCallMethod(gantt, "ExecuteTemplate", "ScrollPartCaption(2,32) = `<img>2</img>`");

482
How can I scroll fast the chart, or page by page

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( gantt , "ScrollButtonWidth", 16);
_ObjectSetProperty( gantt , "AllowChartScrollPage", -1);
_ObjectCallMethod(gantt, "ExecuteTemplate", "ScrollPartCaption(2,2048) = `<<`");
_ObjectCallMethod(gantt, "ExecuteTemplate", "ScrollPartCaption(2,32) = `>>`");

481
How can I scroll fast the chart, or page by page

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( gantt , "AllowChartScrollPage", -1);

480
How can I display years, from 3 to 3

OBJECT gantt,level;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitWidth", 64);
level = _ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0)");
	_ObjectSetProperty( level , "Label", "<%yyyy%>");
	_ObjectSetProperty( level , "Unit", 0);
	_ObjectSetProperty( level , "Count", 3);

479
How can I display years

OBJECT gantt,level;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitWidth", 64);
level = _ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0)");
	_ObjectSetProperty( level , "Label", "<%yy%>");
	_ObjectSetProperty( level , "Unit", 0);

478
How can I display years

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitWidth", 48);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 0");

477
How can I display months, from 3 to 3

OBJECT gantt,level;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitWidth", 64);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 1");
level = _ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1)");
	_ObjectSetProperty( level , "Label", "<%mmmm%>");
	_ObjectSetProperty( level , "Unit", 16);
	_ObjectSetProperty( level , "Count", 3);

476
How can I display months

OBJECT gantt,level;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitWidth", 64);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 1");
level = _ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1)");
	_ObjectSetProperty( level , "Label", "<%mmmm%>/<%yy%>");
	_ObjectSetProperty( level , "Unit", 16);

475
How can I display months

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitWidth", 64);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 1");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).Label = 16");

474
How can I display weeks

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitWidth", 64);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 17");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).Label = 256");

473
How can I display weeks

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 17");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).Label = `<%ww%>`");

472
How can I display days, from 2 to 2

OBJECT gantt,level;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 256");
level = _ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1)");
	_ObjectSetProperty( level , "Label", "<%dd%>");
	_ObjectSetProperty( level , "Count", 2);

471
How can I display days

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 256");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).Label = `<%dd%>`");

470
How can I display days

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 256");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).Label = 4096");

469
How can I display hours, from 6 to 6

OBJECT gantt,level;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "00:00");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 4096");
level = _ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1)");
	_ObjectSetProperty( level , "Label", "<%hh%>");
	_ObjectSetProperty( level , "Count", 6);

468
How can I display hours

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 4096");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).Label = `<%hh%>`");

467
How can I display hours

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 4096");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).Label = 65536");

466
How can I display minutes, from 15 to 15

OBJECT gantt,level;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "00:00");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 65536");
level = _ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1)");
	_ObjectSetProperty( level , "Label", "<%nn%>");
	_ObjectSetProperty( level , "Count", 15);

465
How can I display minutes

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 65536");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).Label = `<%nn%>`");

464
How can I display minutes

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitWidth", 64);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 65536");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).Label = 1048576");

463
How can I display seconds, from 15 to 15

OBJECT gantt,level;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "00:00");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 1048576");
level = _ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1)");
	_ObjectSetProperty( level , "Label", "<%ss%>");
	_ObjectSetProperty( level , "Count", 15);

462
How can I display seconds

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 1048576");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).Label = `<%ss%>`");

461
How can I display seconds

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).Label = 1048576");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).Label = 16777216");

460
How can I align the text being shown in the chart's header

OBJECT gantt,level;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitWidth", 64);
level = _ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0)");
	_ObjectSetProperty( level , "Label", "<b><%mmmm%></b> <r><%m%>");
	_ObjectSetProperty( level , "Unit", 16);
	_ObjectSetProperty( level , "Alignment", 0);

459
How can I hide the tooltip being displayed in the chart's header

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).ToolTip = ``");

458
How can I change the tooltip being displayed in the chart's header

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).ToolTip = `This is a bit of text that's shown when the cursor hovers the level`");

457
How can I change the visual appearance of the chart's header, where levels are displayed, using your EBN files

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( gantt , "VisualAppearance") , "Add", 1,"c:\exontrol\images\normal.ebn");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "BackColorLevelHeader", 16777216);

456
How can I change the level's foreground color in the chart

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).ForeColor = 255");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).ForeColor = 16711680");

455
How can I change the level's background color in the chart

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(0).BackColor = 255");

454
How can I save data on XML format


453
How can I load data on XML format


452
How can I add icons or pictures to the scale or zoom area

OBJECT chart,gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "ExecuteTemplate", "HTMLPicture(`pic1`) = `c:\exontrol\images\zipdisk.gif`");
_ObjectCallMethod( gantt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
	"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
	"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
	"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
chart = _ObjectGetProperty( gantt , "Chart");
	_ObjectSetProperty( chart , "OverviewHeight", 48);
	_ObjectSetProperty( chart , "OverviewVisible", -1);
	_ObjectSetProperty( chart , "AllowOverviewZoom", -1);
	_ObjectSetProperty( chart , "OverviewZoomCaption", "Year|½Year|¼Year|<img>3</img> Week|Third|<img>2</img> Day|<img>pic1</img>|Hour|Min|Sec");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim chaObj")
	_ObjectCallMethod(gantt, "TemplatePut", chart)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(0) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(1) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(2) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(17) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(65536) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(1048576) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(16777216) = ``");
	_ObjectSetProperty( chart , "OverviewZoomUnit", 52);
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`Right click the Overview area and select a new scale`),0) = False");

451
How can I add icons or pictures to the scale or zoom area

OBJECT chart,gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "ExecuteTemplate", "HTMLPicture(`pic1`) = `c:\exontrol\images\zipdisk.gif`");
_ObjectCallMethod( gantt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
	"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
	"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
	"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
chart = _ObjectGetProperty( gantt , "Chart");
	_ObjectSetProperty( chart , "OverviewHeight", 48);
	_ObjectSetProperty( chart , "OverviewVisible", -1);
	_ObjectSetProperty( chart , "AllowOverviewZoom", 1);
	_ObjectSetProperty( chart , "OverviewZoomCaption", "Year|½Year|¼Year|<img>3</img> Week|Third|<img>2</img> Day|<img>pic1</img>|Hour|Min|Sec");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim chaObj")
	_ObjectCallMethod(gantt, "TemplatePut", chart)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(0) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(1) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(2) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(17) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(65536) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(1048576) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(16777216) = ``");
	_ObjectSetProperty( chart , "OverviewZoomUnit", 52);

450
How can I change the width of the unit in the scale or zoom

OBJECT chart,gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( gantt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
	"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
	"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
	"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
chart = _ObjectGetProperty( gantt , "Chart");
	_ObjectSetProperty( chart , "OverviewVisible", -1);
	_ObjectSetProperty( chart , "AllowOverviewZoom", 1);
	_ObjectSetProperty( chart , "OverviewZoomCaption", "Year|½Year|¼Year|<img>3</img>|Third|<img>2</img>|<img>1</img>|Hour|Min|Sec");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim chaObj")
	_ObjectCallMethod(gantt, "TemplatePut", chart)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(0) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(1) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(2) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(17) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(65536) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(1048576) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(16777216) = ``");
	_ObjectSetProperty( chart , "OverviewZoomUnit", 24);

449
How can I a scale or zoom of the chart, when right clicking the chart's header

OBJECT chart,gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( gantt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
	"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
	"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
	"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
chart = _ObjectGetProperty( gantt , "Chart");
	_ObjectSetProperty( chart , "OverviewVisible", -1);
	_ObjectSetProperty( chart , "AllowOverviewZoom", -1);
	_ObjectSetProperty( chart , "OverviewZoomCaption", "Year|½Year|¼Year|<img>3</img>Month|Third|<img>2</img>Week|<img>1</img>Day|Hour|Min|Sec");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim chaObj")
	_ObjectCallMethod(gantt, "TemplatePut", chart)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(0) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(1) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(2) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(17) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(65536) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(1048576) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(16777216) = ``");
	_ObjectSetProperty( chart , "OverviewZoomUnit", 64);
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`Right click the Overview area and select a new scale`),0) = False");

448
How can I a customize the scale or zoom of the chart

OBJECT chart,gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( gantt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
	"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
	"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
	"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
chart = _ObjectGetProperty( gantt , "Chart");
	_ObjectSetProperty( chart , "OverviewVisible", -1);
	_ObjectSetProperty( chart , "AllowOverviewZoom", 1);
	_ObjectSetProperty( chart , "OverviewZoomCaption", "Year|½Year|¼Year|<img>3</img>Month|Third|<img>2</img>Week|<img>1</img>Day|Hour|Min|Sec");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim chaObj")
	_ObjectCallMethod(gantt, "TemplatePut", chart)
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(0) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(1) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(2) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(17) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(65536) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(1048576) = ``");
	_ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.Label(16777216) = ``");
	_ObjectSetProperty( chart , "OverviewZoomUnit", 64);

447
How can I a scale or zoom the chart at runtime

OBJECT chart,gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod( gantt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
	"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
	"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
	"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
chart = _ObjectGetProperty( gantt , "Chart");
	_ObjectSetProperty( chart , "OverviewVisible", -1);
	_ObjectSetProperty( chart , "AllowOverviewZoom", 1);
	_ObjectSetProperty( chart , "OverviewZoomCaption", "½Year|¼Year|<img>3</img>Month|Third|<img>2</img>Week|<img>1</img>Day|Hour|Min|Sec");

446
How can I a scale or zoom the chart at runtime

OBJECT chart,gantt;

gantt =  ObjectByName("AN1") ;
chart = _ObjectGetProperty( gantt , "Chart");
	_ObjectSetProperty( chart , "OverviewVisible", -1);
	_ObjectSetProperty( chart , "AllowOverviewZoom", 1);
	_ObjectSetProperty( chart , "OverviewZoomUnit", 24);

445
How can I a programmatically select a date
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "MarkSelectDateColor", 255);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.SelectDate(#1/2/2001#) = True");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.SelectDate(#1/5/2001#) = True");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "SelectLevel", 0);

444
How can I change the color to select a date, when clicking the chart's header
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "BackColor", 16777215);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "MarkSelectDateColor", 255);

443
How can I enable or disable selecting a date, when clicking the chart's header
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "BackColor", 16777215);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "MarkSelectDateColor", 16777215);

442
How can I specify the color or the stype for non working hours

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitScale", 65536);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingHours", 127);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingHoursPattern", 12);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingHoursColor", 255);

441
How can I specify the pattern or the stype for non working hours

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitScale", 65536);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingHours", 127);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingHoursPattern", 7);

440
How can I specify the non working hours

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitScale", 65536);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingHours", 127);

439
How can I get the index of the level from the point or cursor
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "TemplatePut", "Dim _ObObj")
_ObjectCallMethod(gantt, "TemplatePut", _ObjectGetProperty( gantt , "Chart"))
var_LevelFromPoint = _ObjectCallMethod(gantt, "ExecuteTemplate", "_ObObj.LevelFromPoint(0,0)");

438
How can I get the link from the point or cursor
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "TemplatePut", "Dim _ObObj")
_ObjectCallMethod(gantt, "TemplatePut", _ObjectGetProperty( gantt , "Chart"))
var_LinkFromPoint = _ObjectCallMethod(gantt, "ExecuteTemplate", "_ObObj.LinkFromPoint(0,0)");

437
How can I check or verify if a date is a non working day
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", _ObjectCallMethod(gantt, "ExecuteTemplate", ".Chart.IsNonworkingDate(#1/1/2001#)"));

436
How can I check or verify if a date fits the chart's visible area
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", _ObjectCallMethod(gantt, "ExecuteTemplate", ".Chart.IsDateVisible(#1/1/2001#)"));

435
How can I add a remove all non working days
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingDays", 0);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Chart") , "AddNonworkingDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Chart") , "ClearNonworkingDates");

434
How can I add a remove a non working days
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingDays", 0);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Chart") , "AddNonworkingDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Chart") , "RemoveNonworkingDate", "1/1/2001");

433
How can I add a custom non working days

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingDays", 0);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Chart") , "AddNonworkingDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Chart") , "AddNonworkingDate", "1/5/2001");

432
How can hide the non working days
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "ShowNonworkingDates", 0);

431
How can hide the non working days
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingDays", 0);

430
How can I change the width of the links between bars

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LinksStyle", 0);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LinksWidth", 2);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001","B1");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 2"),"Task","1/6/2001","1/14/2001","B2");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod( items , "AddLink", "L1",_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.FindItem(`Item 1`,0)"),"B1",_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.FindItem(`Item 2`,0)"),"B2");

429
How can I change the style for the links between bars

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LinksStyle", 4);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001","B1");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 2"),"Task","1/6/2001","1/14/2001","B2");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod( items , "AddLink", "L1",_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.FindItem(`Item 1`,0)"),"B1",_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.FindItem(`Item 2`,0)"),"B2");

428
How can I change the color for the links between bars

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LinksColor", 255);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001","B1");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 2"),"Task","1/6/2001","1/14/2001","B2");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod( items , "AddLink", "L1",_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.FindItem(`Item 1`,0)"),"B1",_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.FindItem(`Item 2`,0)"),"B2");

427
How can I hide the links between bars
OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001","B1");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 2"),"Task","1/6/2001","1/14/2001","B2");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim iteObj")
	_ObjectCallMethod(gantt, "TemplatePut", items)
	_ObjectCallMethod( items , "AddLink", "L1",_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.FindItem(`Item 1`,0)"),"B1",_ObjectCallMethod(gantt, "ExecuteTemplate", "iteObj.FindItem(`Item 2`,0)"),"B2");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "ShowLinks", 0);

426
How can I display some grid line in the overview area

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewVisible", -1);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewLevelLines", 0);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/6/2001","1/14/2001");

425
How do I change the tooltip when the cursor hovers the overview area

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewVisible", -1);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewToolTip", "Tooltip on the overview");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/6/2001","1/14/2001");

424
How do I remove the tooltip when the cursor hovers the overview area
OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewVisible", -1);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewToolTip", "");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");

423
How do I change the selection color in the overview area

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewVisible", -1);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewSelBackColor", 255);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");

422
How do I change the background color for the overview area

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewVisible", -1);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewBackColor", 255);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");

421
How do I specify the height for the overview area

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewVisible", -1);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewHeight", 16);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");

420
How do I show or hide the control's overview area

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "OverviewVisible", -1);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");

419
How do I get the bar from the point or cursor
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "TemplatePut", "Dim _ObObj")
_ObjectCallMethod(gantt, "TemplatePut", _ObjectGetProperty( gantt , "Chart"))
var_BarFromPoint = _ObjectCallMethod(gantt, "ExecuteTemplate", "_ObObj.BarFromPoint(0,0)");

418
How do I specify the color of pattern for non working days

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingDays", 66);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingDaysPattern", 8);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingDaysColor", 255);

417
How do I specify the type of pattern for non working days

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingDays", 66);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingDaysPattern", 11);

416
How do I specify the non working days

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingDays", 66);

415
How do I specify the non working days
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "NonworkingDays", 66);

414
How do I add a predefined bar

OBJECT gantt,items;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( _ObjectGetProperty( gantt , "Chart") , "Bars") , "Add", "CustomBar") , "Color", 255);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( gantt , "Items");
	_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"CustomBar","1/2/2001","1/4/2001");

413
How do I change the unit being displayed in the chart

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitScale", 256);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "UnitWidth", 64);

412
How do I specify the prodefined tooltip being shown on the chart's header, when Zoom method is used

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Label(1) = ``");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Label(2) = ``");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Label(16) = `<%m3%>`");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.LabelToolTip(16) = `Tooltip: <%mmmm%>`");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Chart") , "Zoom", "1/1/2007","1/1/2008");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2007");

411
How do I specify the prodefined labels being displayed on the chart, when Zoom method is used

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Label(1) = ``");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Label(2) = ``");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Label(16) = `<%m3%>`");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Chart") , "Zoom", "1/1/2007","1/1/2008");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2007");

410
How do I scale or zoom the chart to a specified range of date
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Label(1) = ``");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Label(2) = ``");
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Label(16) = `<%m3%>`");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Chart") , "Zoom", "1/1/2007","1/1/2008");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2007");

409
How do I scale or zoom the chart to a specified range of date
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod( _ObjectGetProperty( gantt , "Chart") , "Zoom", "1/1/2007","7/1/2007");
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "FirstVisibleDate", "1/1/2007");

408
How do I find the next date or previous date
OBJECT chart,gantt;

gantt =  ObjectByName("AN1") ;
chart = _ObjectGetProperty( gantt , "Chart");
	_ObjectCallMethod(gantt, "TemplatePut", "Dim chaObj")
	_ObjectCallMethod(gantt, "TemplatePut", chart)
	_ObjectSetProperty( chart , "FirstVisibleDate", _ObjectCallMethod(gantt, "ExecuteTemplate", "chaObj.NextDate(#1/1/2002#,4096,1)"));

407
How can I change the color for the grid lines in the chart

OBJECT gantt,level;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "DrawGridLines", -1);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
level = _ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1)");
	_ObjectSetProperty( level , "DrawGridLines", -1);
	_ObjectSetProperty( level , "GridLineColor", 255);

406
How can I draw, show or hide the grid lines in the chart

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "DrawGridLines", -1);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(gantt, "ExecuteTemplate", "Chart.Level(1).DrawGridLines = True");

405
How do I change the color to highlight the today in the chart

OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "MarkTodayColor", 255);

404
How do I hide or stop highlighting the today area in the chart
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "BackColor", 16777215);
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "MarkTodayColor", 16777215);

403
Is there any function to get the date in the format that I use for levels, to layout my chart's header
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectCallMethod(gantt, "TemplatePut", "Dim _ObObj")
_ObjectCallMethod(gantt, "TemplatePut", _ObjectGetProperty( gantt , "Chart"))
h = _ObjectCallMethod(gantt, "ExecuteTemplate", "_ObObj.FormatDate(#1/1/2002#,`<%yyyy%> <%mmmm%> <%d%> <%dddd%>`)");
_ObjectCallMethod( _ObjectGetProperty( gantt , "Columns") , "Add", h);

402
How can I get the date from the point, cursor
// MouseMove event - Occurs when the user moves the mouse.
FUNCTION ganttEvents_MouseMove(OBJECT gantt, INT Button, INT Shift, INT X, INT Y)
	_ObjectCallMethod(gantt, "TemplatePut", "Dim _ObObj")
	_ObjectCallMethod(gantt, "TemplatePut", _ObjectGetProperty( gantt , "Chart"))
	Message( _ObjectCallMethod(gantt, "ExecuteTemplate", "_ObObj.DateFromPoint(-1,-1)") );
END



401
How can I show or hide the small ticker that shows up when the cursor hovers the chart area
OBJECT gantt;

gantt =  ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( gantt , "Chart") , "DrawDateTicker", 0);